package cn.kgc.novel.pojo;
//杨将

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Users {

  private Integer uid;  //用户id
  private String name;  //用户姓名
  private String sex;   //用户性别
  private String account;  //用户账号
  private String password; //用户密码
  private String phone;  //用户手机号
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date birthday; //出生日期
  private String email;  //邮箱
  private String signature;  //个性签名
  private String useravatar;  //头像
  private String bookshelf; //书架
  private String profile;//简介
  private String Permissions;//权限1.普通 2.作者 3.管理员 4.超级管理员 0.封禁 5.审核

  public String getProfile() {
    return profile;
  }

  public void setProfile(String profile) {
    this.profile = profile;
  }

  private Type type;

  private Books books;

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  public Books getBooks() {
    return books;
  }

  public void setBooks(Books books) {
    this.books = books;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getSignature() {
    return signature;
  }

  public void setSignature(String signature) {
    this.signature = signature;
  }

  public String getUseravatar() {
    return useravatar;
  }

  public void setUseravatar(String useravatar) {
    this.useravatar = useravatar;
  }

  public String getBookshelf() {
    return bookshelf;
  }

  public void setBookshelf(String bookshelf) {
    this.bookshelf = bookshelf;
  }

  public String getPermissions() {
    return Permissions;
  }

  public void setPermissions(String permissions) {
    Permissions = permissions;
  }

  //武龙加：

  @Override
  public String toString() {
    return "Users{" +
            "uid=" + uid +
            ", name='" + name + '\'' +
            ", sex='" + sex + '\'' +
            ", account='" + account + '\'' +
            ", password='" + password + '\'' +
            ", phone='" + phone + '\'' +
            ", birthday=" + birthday +
            ", email='" + email + '\'' +
            ", signature='" + signature + '\'' +
            ", useravatar='" + useravatar + '\'' +
            ", bookshelf='" + bookshelf + '\'' +
            ", profile='" + profile + '\'' +
            ", Permissions='" + Permissions + '\'' +
            ", type=" + type +
            ", books=" + books +
            '}';
  }
}
